import Vue from 'vue'
const API_HOST = process.env.API_HOST

export const login = function (username, password) {
  return Vue.http.post(`${API_HOST}/c/auth`, {username, password})
}

export const getLoginedUser = function () {
  return Vue.http.get(`${API_HOST}/users/loginedUser`)
}
